package com.by.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@TableName
@Data
public class Sku {

    /** 属性id */
    @TableId(value = "sku_id",type = IdType.AUTO)
    private Integer skuId ;

    /** SPU id */
    @ApiModelProperty(name = "SPU id",notes = "")
    private Integer spuId ;
    /** sku名称 */
    @ApiModelProperty(name = "sku名称",notes = "")
    private String skuName ;
    /** 多个销售属性值id逗号分隔 */
    @ApiModelProperty(name = "多个销售属性值id逗号分隔",notes = "")
    private String attrs ;
    /** sku图片 */
    @ApiModelProperty(name = "sku图片",notes = "")
    private String imgUrl ;
    /** 售价，整数方式保存 */
    @ApiModelProperty(name = "售价，整数方式保存",notes = "")
    private BigDecimal priceFee ;
    /** 市场价，整数方式保存 */
    @ApiModelProperty(name = "市场价，整数方式保存",notes = "")
    private BigDecimal marketPriceFee ;
    /** 商品编码 */
    @ApiModelProperty(name = "商品编码",notes = "")
    private String partyCode ;
    /** 商品条形码 */
    @ApiModelProperty(name = "商品条形码",notes = "")
    private String modelId ;
    /** 商品重量 */
    @ApiModelProperty(name = "商品重量",notes = "")
    private Double weight ;
    /** 商品体积 */
    @ApiModelProperty(name = "商品体积",notes = "")
    private Double volume ;
    /** 状态 1:enable, 0:disable, -1:deleted */
    @ApiModelProperty(name = "状态 1:enable, 0:disable, -1:deleted",notes = "")
    private int status ;

    @ApiModelProperty(name = "sku的库存")
    @TableField(exist = false)
    private int stock;
}
